home *** CD-ROM | disk | FTP | other *** search
/ Asia X / Asia X.iso / mac / SHARED.DIR / 00155.ls < prev    next >
Encoding:
Text File  |  1995-08-23  |  3.3 KB  |  105 lines

  1. on startMovie
  2.   global g_num_pics, spriteList, cursorList, doll_right, doll_left, doll_help, doll_option, doll_quit, doll_auto, g_auto_state, g_doll_state, g_help_state, g_option_state, g_quit_state, Help4, Help3, Help2, Help1, Quit4, Quit3, Quit2, Quit1, Option4, Option3, Option2, Option1, Doll9, Doll8, Doll7, Doll6, Doll5, Doll4, Doll3, Doll2, Doll1, auto4, auto3, auto2, auto1
  3.   set Help4 to the number of cast "Help.4"
  4.   set Help3 to the number of cast "Help.3"
  5.   set Help2 to the number of cast "Help.2"
  6.   set Help1 to the number of cast "Help.1"
  7.   set Quit4 to the number of cast "Quit.4"
  8.   set Quit3 to the number of cast "Quit.3"
  9.   set Quit2 to the number of cast "Quit.2"
  10.   set Quit1 to the number of cast "Quit.1"
  11.   set auto4 to the number of cast "auto.4"
  12.   set auto3 to the number of cast "auto.3"
  13.   set auto2 to the number of cast "auto.2"
  14.   set auto1 to the number of cast "auto.1"
  15.   set Option4 to the number of cast "Option.4"
  16.   set Option3 to the number of cast "Option.3"
  17.   set Option2 to the number of cast "Option.2"
  18.   set Option1 to the number of cast "Option.1"
  19.   set Doll9 to the number of cast "Doll.9"
  20.   set Doll8 to the number of cast "Doll.8"
  21.   set Doll7 to the number of cast "Doll.7"
  22.   set Doll6 to the number of cast "Doll.6"
  23.   set Doll5 to the number of cast "Doll.5"
  24.   set Doll4 to the number of cast "Doll.4"
  25.   set Doll3 to the number of cast "Doll.3"
  26.   set Doll2 to the number of cast "Doll.2"
  27.   set Doll1 to the number of cast "Doll.1"
  28.   set g_help_state to 4
  29.   set g_doll_state to 5
  30.   set g_quit_state to 4
  31.   set g_option_state to 4
  32.   set g_auto_state to 4
  33.   puppetSprite(11, 1)
  34.   puppetSprite(10, 1)
  35.   puppetSprite(9, 1)
  36.   puppetSprite(8, 1)
  37.   puppetSprite(7, 1)
  38.   set doll_right to the number of cast "doll_right"
  39.   set doll_left to the number of cast "doll_left"
  40.   set doll_help to the number of cast "doll_help"
  41.   set doll_option to the number of cast "doll_option"
  42.   set doll_quit to the number of cast "doll_quit"
  43.   set doll_auto to the number of cast "doll_auto"
  44.   set spriteList to list(0)
  45.   set cursorList to list(0)
  46.   set button to [133 + 144, 141 + 144]
  47.   set the cursor of sprite 12 to [129 + 144, 137 + 144]
  48.   set the cursor of sprite 13 to [130 + 144, 138 + 144]
  49.   set the cursor of sprite 14 to button
  50.   set the cursor of sprite 15 to [132 + 144, 140 + 144]
  51.   set the cursor of sprite 16 to [131 + 144, 139 + 144]
  52.   set the cursor of sprite 17 to button
  53.   set the cursor of sprite 18 to button
  54.   set the cursor of sprite 19 to button
  55.   set the cursor of sprite 20 to button
  56. end
  57.  
  58. on saveSprites
  59.   set spriteList to list(0)
  60.   repeat with i = 1 to 20
  61.     setAt(spriteList, i, the visible of sprite i)
  62.   end repeat
  63.   return spriteList
  64. end
  65.  
  66. on clearCursors
  67.   repeat with i = 1 to 20
  68.     set the cursor of sprite i to 0
  69.   end repeat
  70. end
  71.  
  72. on saveCursors
  73.   set cursorList to list(0)
  74.   repeat with i = 1 to 20
  75.     setAt(cursorList, i, the cursor of sprite i)
  76.   end repeat
  77.   return cursorList
  78. end
  79.  
  80. on restoreCursors cursorList
  81.   repeat with i = 1 to 20
  82.     set the cursor of sprite i to getAt(cursorList, i)
  83.   end repeat
  84. end
  85.  
  86. on restoreSprites spriteList
  87.   repeat with i = 1 to 20
  88.     set the visible of sprite i to getAt(spriteList, i)
  89.   end repeat
  90. end
  91.  
  92. on songUpdate newSong
  93.   global gSong
  94.   set gSong to newSong
  95. end
  96.  
  97. on mouseClick
  98.   puppetSound("Single Click")
  99.   updateStage()
  100.   repeat while soundBusy(0) or soundBusy(1)
  101.     nothing()
  102.   end repeat
  103.   puppetSound(0)
  104. end
  105.